import Vue from 'vue'
import Vuex from 'vuex'


const wflow = {
  state: {
    nodeMap: new Map(),
    isEdit: null,
    selectedNode: {},
    selectFormItem: null,
    design:{},
    runningList: [],
    noTakeList: [],
    endList: [],
    diagramMode: 'design',
  },
  mutations: {
    selectedNode(state, val) {
          state.selectedNode = val
        },
        loadForm(state, val){
          state.design = val
        },
        setIsEdit(state, val){
          state.isEdit = val
        },
        setTemplate(state, val){
         
        },
  },
  getters: {},
  actions: {},
  modules: {}
}

export default wflow